#include "head_c.h"

void recvInfoStruct(int net_fd, user_info *info) {
    int length = sizeof(user_info);
    ssize_t ret1 = recv(net_fd, &length, sizeof(int), MSG_WAITALL);
    ERROR_CHECK(ret1, -1, "recv in recvInfoStruct");
    ssize_t ret2 = recv(net_fd, info, length, MSG_WAITALL);
    ERROR_CHECK(ret2, -1, "recv in recvInfoStruct");
    return;
}

